通过ExternalInterface.call调用外部的console.log这个javascript方法就可以向firebug的控制台里输出调试信息。
http://marumushi.com/news/debugging-as3-with-firebugs-console
亮点:
The really cool thing is that from flash you can call "console" using ExternalInterface, and any object you pass will be dumped as if it was a javascript object.
try it out:
ExternalInterface.call("console.log",{foo:123,bar:"da",boo:{da:12,beh:[123,145,"dfa",{fa:[0,1,2,4,5]}]}});
and you will see the output in the image above.
HxLauncher: Launch Android applications by voice commands